#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <string.h>

//The class for Db operations 
using namespace std;

//We may need that one later dunnow
class ImageOpt{

    public :
        int id;
        char person_name[80];
        int part;
};

class DbOperation{

    public:
        bool parseImageName(string filename,ImageOpt*);
        bool moveFile(char *source_dir,char *dest_dir,char *source_file,char *dest_file,int type);
        bool removeImage(char *image_name, char *dir_name);
        bool removePerson(char* person_name,char* dir_name);
        bool addAllDir(char* dir_name,char* person_name,char* from_dir);
        int listImages(string dir_name,vector<string> &file_list); //list the images that are in directory
        bool addImage(char *image_name,char *dir_name,char *person_name,char* src_dir);
        int  printImages(string dir_name);
        bool checkIntegrity(char *dir_name); //check if something changed there
        bool recreateCache(char *dir_name); //Compute all the stuff and recreate again


      };

//**********************************************************************************************************

